/**
 * Created by Freeman on 2016/8/8.
 */
import {CHANGE_OPTIONS} from '../constants/ActionTypes'
import merge from 'lodash/merge'
const initialState = {
    pageNo:1,
    pageSize:10,
    sortName: 'publish_time',
    tagId: '',
    userId:'',
    isEdit:false
};

export default function options(state=initialState,action={}) {
    switch (action.type){
        case CHANGE_OPTIONS:
            return merge({},state,action.option);
        default :
            return state;
    }

}